// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import ElementUI from 'element-ui'
import Bus from './utils/bus.js'

// import style
// import sass from 'sass';
// import 'https://fonts.googleapis.com/css2?family=Krona+One&display=swap'
import 'element-ui/lib/theme-chalk/index.css'
import 'swiper/css/swiper.css'

// Firebase App (the core Firebase SDK) is always required and must be listed first
// import firebase from 'firebase/app'
// If you are using v7 or any earlier version of the JS SDK, you should import firebase using namespace import
// import * as firebase from "firebase/app"

// If you enabled Analytics in your project, add the Firebase SDK for Analytics
// import 'firebase/analytics'

// Add the Firebase products that you want to use
// import 'firebase/auth'
// import 'firebase/firestore'

window.Bus = Bus
Vue.use(VueAwesomeSwiper)
Vue.config.productionTip = false
Vue.use(ElementUI)
// Vue.use(sass)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})

// console.warn('firebase:', firebase)
// const firebaseConfig = {
//   apiKey: "AIzaSyAKJPJ76Sx3pVq75JvadiVX-rs2WL_aBAs",
//   authDomain: "frk-marketplace.firebaseapp.com",
//   projectId: "frk-marketplace",
//   storageBucket: "frk-marketplace.appspot.com",
//   messagingSenderId: "776382664179",
//   appId: "1:776382664179:web:0fd3dd35f30a43eb2a1686",
//   measurementId: "G-RJF9PCTJWR"
// };
// // Initialize Firebase
// firebase.initializeApp(firebaseConfig)
// firebase.analytics()

// firebase.auth().currentUser.getIdToken(/* forceRefresh */ true).then(function(idToken) {
//   // Send token to your backend via HTTPS
//   console.warn('idToken:', idToken)
// }).catch(function(error) {
//   // Handle error
//   console.error('firebase:', error)
// });
